rust-uno-DEB_CARGO_CRATE
authorDebian LibreOffice Maintainers <debian-openoffice@lists.debian.org>
Wed, 28 Jan 2026 20:03:25 +0000 (21:03 +0100)
committerRene Engelhard <rene@debian.org>
Wed, 28 Jan 2026 20:03:25 +0000 (21:03 +0100)
Gbp-Pq: Name rust-uno-DEB_CARGO_CRATE.diff

rust_uno/CustomTarget_cargo.mk

index c7f56870f41919e712b314fc06abf6d4edefdcb3..5f933906b01d2029435489699edbc5c62fa00f16 100644 (file)
@@ -13,7 +13,7 @@ $(eval $(call gb_CustomTarget_CustomTarget,rust_uno/cargo))
 $(call gb_CustomTarget_get_target,rust_uno/cargo): \
         $(call gb_Library_get_target,rust_uno-cpp) \
         $(gb_CustomTarget_workdir)/rust_uno/rustmaker/cpp
-       cd $(SRCDIR)/rust_uno && cargo build $(if $(verbose),--verbose,) --release
+       cd $(SRCDIR)/rust_uno && export DEB_CARGO_CRATE=rust-uno_$(shell grep version rust_uno/Cargo.toml | awk '{ print $$3 }' | sed -e s/\"//g); cargo build $(if $(verbose),--verbose,) --release
 
 #TODO: Add to the general pattern rule from solenv/gbuild/CustomTarget.mk, instead of having to
 # repeat its recipe here: